package cn.hiapi.shopkeeper.service.order;

import cn.hiapi.basic.jpa.pageable.QueryWrapper;
import cn.hiapi.basic.service.AbsBasicService;
import cn.hiapi.shopkeeper.entity.order.ActivityLotteryOrder;
import cn.hiapi.shopkeeper.entity.order.ActivityOrder;
import cn.hiapi.shopkeeper.jpa.order.ActivityLotteryOrderJpa;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author AdinZ
 * @date 2023/1/3 0:05
 */
@Service
public class ActivityLotteryOrderService extends AbsBasicService<ActivityLotteryOrderJpa, ActivityLotteryOrder, Long> {


    public long totalUserCount(long aid) {
        List list = this.repository.totalUserCount(aid);
        if (list == null) return 0;
        return list.size();
    }
}
